Class symantec.itools.db.beans.binding.OutputEditor
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.binding.OutputEditor
Object
|
+----PropertyEditorSupport
|
+----symantec.itools.db.beans.binding.OutputEditor
- public class OutputEditor
- extends PropertyEditorSupport
-
symantec.itools.db.beans.binding.OutputEditor()
-
-
getAsText()
-
-
getJavaInitializationString()
- This method is intended for use when generating Java code to set
the value of the property.
-
getValue()
-
-
setAsText(String)
- Set the property value by parsing a given String.
-
setValue(Object)
- Set (or change) the object that is to be edited.
OutputEditor
public OutputEditor()
getAsText
public java.lang.String getAsText()
-
- Returns:
- The property value as a string suitable for presentation
to a human to edit.
Returns "null" is the value can't be expressed as a string.
If a non-null value is returned, then the PropertyEditor should
be prepared to parse that string back in setAsText().
- Overrides:
- getAsText in class PropertyEditorSupport
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- This method is intended for use when generating Java code to set
the value of the property. It should return a fragment of Java code
that can be used to initialize a variable with the current property
value.
Example results are "2", "new Color(127,127,34)", "Color.orange", etc.
- Returns:
- A fragment of Java code representing an initializer for the
current value.
- Overrides:
- getJavaInitializationString in class PropertyEditorSupport
getValue
public java.lang.Object getValue()
-
- Returns:
- The value of the property.
- Overrides:
- getValue in class PropertyEditorSupport
setAsText
public void setAsText(String text) throws IllegalArgumentException
- Set the property value by parsing a given String. May raise
java.lang.IllegalArgumentException if either the String is
badly formatted or if this kind of property can't be expressed
as text.
- Parameters:
- text - The string to be parsed.
- Overrides:
- setAsText in class PropertyEditorSupport
setValue
public void setValue(Object value)
- Set (or change) the object that is to be edited.
- Parameters:
- value - The new target object to be edited. Note that this
object should not be modified by the PropertyEditor, rather
the PropertyEditor should create a new object to hold any
modified value.
- Overrides:
- setValue in class PropertyEditorSupport
All Packages Class Hierarchy This Package Previous Next Index